<wxs module="dateFr" src="../../js/filter.wxs"></wxs>
<view wx:if='{{!isShowShop}}'>
    <view id="choose_view">
        <navigator url="/pages/reserveShops/reserveShops" hover-class="none">
            <image class='icon_style' src="{{urlAddress}}/meal_icon_location1.png" />
            <label class="shopName">{{shopName||'请选择门店'}}</label>
            <image class='icon1_style' src="{{urlAddress}}/meal_icon_next1.png" />
            <view style='height: 14rpx;width: 100%;'></view>
        </navigator>
    </view>
    <div class="nocoup_style" wx:if="{{shopInfo.shopName!='请选择门店'}}">
        <image src='{{urlAddress}}/empty_order.png'></image>
        <div>{{noteMsg}}</div>
    </div>
     <view id='shopView' wx:if="{{shopInfo.shopName=='请选择门店'}}">
            <view wx:if="{{shopList.length}}">
                <view id='shopList'>
                    <!-- <div class="no_style" wx:if='{{shopList.length==0}}'>暂无门店</div> -->
                    <li wx:for='{{shopList}}' wx:key='{{index}}' bindtap='chooseAction' data-code="{{item.shopCode}}" data-type='{{item.status}}'>
                        <div wx:if='{{item.status!=1}}'></div>
                        <image src="{{urlAddress}}/meal_icon_location2.png" />
                        <label class="shopName">{{shopName}}</label>
                        <label class="lastTime" wx:if="{{item.lastConsume}}">上次下单</label>
                        <label class="shopAddress">{{item.address}}</label>
                        <label wx:if='{{item.distance}}' class="distance">{{dateFr.fitNum(item.distance)}}</label>
                    </li>
                </view>
            </view>
        </view>
</view>
<view wx:if='{{isShowShop}}' id='reserve_page'>
    <view id="position">
        <navigator url="/pages/reserveShops/reserveShops" hover-class="none">
            <image class='icon_style' src="{{urlAddress}}/meal_icon_location1.png" />
            <label class="shopName">{{shopName}}</label>
            <image class='icon1_style' src="{{urlAddress}}/meal_icon_next1.png" />
        </navigator>
        <!-- <label class="times_style" bindtap='changeDetail'>次日{{distributionStartTime}}-{{distributionEndTime}}自提</label> -->
        <label class="details_style" bindtap='changeDetail'>详情</label>
    </view>
     <view id="details" >
            <view id='floatView' wx:if='{{!modalFlag}}'> </view>
            <view class="details-box" hidden="{{modalFlag}}">
                <view>{{shopInfo.tips}} </view>
                <view class="ddd" bindtap='changeDetail'>
                    <image  src="{{urlAddress}}/pinTuan_up.png" />
                </view>
            </view>
     </view>
     
     <swiper style='height: {{imageHeight}}rpx' class="swiper" circular="true" indicator-dots="true" autoplay="true" interval="5000" duration="500">
        <block wx:for="{{movies}}" wx:for-index="index">
            <swiper-item>
                <image bindtap='turnTar' data-code='{{item.url}}' src="{{item.image}}" class="slide-image" mode="scaleToFill" />
            </swiper-item>
        </block>
    </swiper>
    <scroll-view scroll-y style='height:{{scrollHeight}}' id='menu'>
        <label wx:for='{{shopInfo.categoryList}}' bindtap='getGoodsBytype' data-code='{{item.categoryCode}}' class="{{item.bg_style}}">{{item.categoryName}}</label>
        <view class='gHeight'></view>
    </scroll-view>
    <scroll-view scroll-y scroll-top='{{scrollTop}}' style='height:{{scrollHeight}}' id='goods'>
        <view class='items_style' wx:for="{{goodsList.goodsList}}" wx:key="{{index}}">
            <image id='id_{{item.goods.goodsGbk}}' wx:if="{{item.goods.imgUrl==null}}" src="{{urlAddress}}/xiaomai.jpg" />
            <image id='id_{{item.goods.goodsGbk}}' wx:if="{{item.goods.imgUrl!=null}}" class='market_style' src="{{item.goods.imgUrl}}" />
            <label class="goods_name">{{item.goods.goodsName}}</label>
            <label class="goods_money">¥{{item.goods.price}}<span wx:if="{{item.goods.price!=item.goods.originalPrice}}">¥{{item.goods.originalPrice}}<view wx:if="{{item.goods.price!=item.goods.originalPrice}}" class="line"></view></span></label>
            <label class="no_style" wx:if='{{item.status==2}}'>已售罄</label>

            <view class='add_sub_style' wx:if='{{item.status!=2||item.goods.num!=0}}'>
                <label class="add_style" data-img='{{item.goods.imgUrl}}' data-count='{{item.goods.num}}' data-num="1" data-code='{{item.goods.goodsGbk}}' bindtap="addAction">
                    <image class='market_style' wx:if='{{item.goods.num==0}}' src="{{urlAddress}}/waimai_btn_cart.png" />
                    <image class='as_style' wx:if='{{item.goods.num!=0}}' src="{{urlAddress}}/waimai_btn_add.png" />
                </label>
                <label wx:if='{{item.goods.num!=0}}' class="goods_num">{{item.goods.num}}</label>
                <label class="sub_style"  wx:if='{{item.goods.num!=0}}' data-num="-1" data-code='{{item.goods.goodsGbk}}' bindtap="addAction">
                    <image class='as_style' src="{{urlAddress}}/waimai_btn_minus.png" />
                </label>
            </view>
        </view>
        <view class='gHeight'></view>
    </scroll-view>
    <view id='pay_view'>
        <label id="endMarker"></label>
        <label wx:if='{{goodsList.num==0}}' class="no_msg">未购买商品</label>
        <label class="no_pay" wx:if='{{goodsList.num==0}}'>去结算</label>
        <!-- <navigator  url="/pages/reservePay/reservePay" hover-class="none"> -->
        <label bindtap='turnPayPage' class="pay_style" wx:if='{{goodsList.num!=0}}'>去结算({{goodsList.num}})</label>
        <!-- </navigator> -->
        <!-- <label wx:if='{{goodsList.num!=0}}' class="pay_num">{{goodsList.num||0}}</label> -->
        <label wx:if='{{goodsList.num!=0}}' class="pay_money" bindtap='goReserveCar'><span>¥{{goodsList.cartPrice||0}}</span><span>优惠¥{{goodsList.cartDiscountAmount||0}}</span></label>
    </view>
</view>
<view wx:if='{{isShowImg}}' id="floatingLayer">
    <view class="layer_top">
        <image src="{{bannerSrc}}"/>
    </view>
    <view class="layer_bottom"  bindtap="closeLayer">{{isShowImg}}
    <image wx:if='{{isShowImg}}' src="{{urlAddress1}}guanbi.png"/>
    </view>
</view>
<!-- 购物车动画 -->
<image wx:if='{{showAnImg}}' animation="{{animationData}}" class='animationImage' style="top: {{topStyle}}px;left:{{leftStyle}}px;{{ani}}" src="{{img}}" />